package com.baiyun.yunpan.service.impl;

import com.baiyun.yunpan.dao.ReportDao;
import com.baiyun.yunpan.entity.Report;
import com.baiyun.yunpan.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Sam
 * @date 2021/6/2 19:17
 */
@Service
public class ReportServiceImpl implements ReportService {

    @Autowired
    private ReportDao reportDao;
    @Override
    public List<Report> list() {
        return reportDao.list();
    }

    @Override
    public void delete(int id) {
        reportDao.delete(id);
    }

    @Override
    public void add(Report report) {
            reportDao.add(report);
    }
}
